package com.xu.seal.config;

import com.xu.seal.common.SealConfiguration;

public class SealConfig {

    public static SealConfiguration build(Integer type, String mainText) throws Exception {

        return switch (type) {
            case 0 -> SealConfig0.build(mainText);
            case 1 -> SealConfig1.build(mainText);
            case 2 -> SealConfig2.build(mainText);
            case 3 -> SealConfig3.build(mainText);
            case 4 -> SealConfig4.build(mainText);
            case 5 -> SealConfig5.build(mainText);
            case 6 -> SealConfig6.build(mainText);
            default -> null;
        };
    }

}
